<h1><?php echo $title_for_page; ?></h1>
<br/><br/>
<p id='btn-create' class='box'><a href='<?=  base_url();?>admin/noticia/cadastro/'><span>Nova Notícia</span></a></p>
<div class='fix'></div>
<table class='tablesorter' summary='Listagem de notícias'>
    <thead>
        <tr>
            <th class='t-center' scope='col'>Cód</th>
            <th scope='col'>Título</th>
            <th class='t-center' scope='col'>Notícia</th>
            <th class='t-center' scope='col'>Autor</th>
            <th class='t-center' scope='col'>Ações</th>
        </tr>
    </thead>
    <?php foreach ( $noticias as $noticia ): ?>
    <tbody>
        <tr>
            <td class='t-center'><?php echo $noticia->codnoticia  ?></td>
            <td><?php echo $noticia->titulo;  ?></td>
            <td><?php echo $noticia->descricao;  ?></td>
            <td class='t-center'><?php echo $noticia->autor; ?></td>
            <td class='t-center'>
                <a href="noticia/excluir/<?php echo $noticia->codnoticia; ?>">
            	    <img src='<?= base_url(); ?>public/design/ico-delete.gif' class='ico' alt='Deletar' />
            	</a>
                <a href='noticia/alterar/<?php echo $noticia->autor; ?>'>
                  <img src='<?= base_url(); ?>public/design/ico-edit.gif' class='ico' alt='Editar' />
                </a>
            </td>
        </tr>
    </tbody>
    <?php endforeach; ?>
</table>

